package com.itheima.ifdemo;

import java.util.Scanner;

public class IfDemo01 {
    public static void main(String[] args) {
        // 需求：键盘录入女婿酒量，如果大于 2 斤 老丈人给出回应，泛着不回应
        System.out.println("请输入酒量:");
        Scanner sc = new Scanner(System.in);
        int number = sc.nextInt();
        if(number > 2) {
            System.out.println("同意");
        } else {
            System.out.println("不同意");
        }
    }
}
